package com.woniuxy.light_smart.service.imp;

import com.woniuxy.light_smart.dto.DetailedDto;
import com.woniuxy.light_smart.entity.Detailed;
import com.woniuxy.light_smart.mapper.DetailedMapper;
import com.woniuxy.light_smart.service.DetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DetailedServiceImpl implements DetailedService {
    @Autowired
    private DetailedMapper detailedMapper;
    @Override
    public List<Detailed> selectAll(DetailedDto d) {
        return detailedMapper.selectAll(d);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return detailedMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Detailed record) {
        return detailedMapper.insert(record);
    }

    @Override
    public int insertSelective(Detailed record) {
        return detailedMapper.insertSelective(record);
    }

    @Override
    public Detailed selectByPrimaryKey(Long id) {
        return detailedMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Detailed record) {
        return detailedMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Detailed record) {
        return detailedMapper.updateByPrimaryKey(record);
    }
}
